//
//  SearchDecryptCell.m
//  MyProject
//
//  Created by 石小强 on 2018/4/18.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import "SearchDecryptCell.h"

@implementation SearchDecryptCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.headerIV.layer.cornerRadius = 13.5;
    self.headerIV.layer.masksToBounds = YES;
}

- (void)setModel:(DecryptModel *)model {
    _model = model;
    
    self.nameL.text = model.title;
    self.starView.value = [model.star floatValue];
    [self.headerIV sd_setImageWithURL:ImageURLWithKey(model.publisherHeadImg) placeholderImage:PlaceholderImage];
    self.positionL.text = [NSString stringWithFormat:@"%@ | %@-%@", model.publisher, model.publisherPosition, model.publisherCompany];
}

@end
